package br.com.lh.urabuilder.command
{
	import br.com.lh.urabuilder.event.NewUraEvent;
	import br.com.lh.urabuilder.event.SetInitialActionEvent;
	import br.com.lh.urabuilder.model.UraModelLocator;
	
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.adobe.cairngorm.control.CairngormEventDispatcher;
	
	public class NewUraCommand implements ICommand
	{
		private var uraModelLocator:UraModelLocator = UraModelLocator.getInstance();
		
		public function NewUraCommand(){
		}
		
		public function execute( event : CairngormEvent ): void{
			uraModelLocator.viewManager.clearUra();
			uraModelLocator.xmlManager.clearUra();
			uraModelLocator.selectableComponents.clearUra();
			if (uraModelLocator.uraPropertiesForm !=null){
				uraModelLocator.uraPropertiesForm.clearUra();
			}
		}
	}
}